#pragma once

#include "../umlmodel_global.h"

#include <memory>
#include <vector>

#include "OpaqueBehavior.h"

using std::make_shared;
using std::shared_ptr;
using std::vector;

namespace uml {
class DataType;

/// <summary>
/// FunctionBehavior
/// A FunctionBehavior is an OpaqueBehavior that does not access or modify any
/// objects or other external data.
/// </summary>
class UMLMODEL_EXPORT FunctionBehavior : public OpaqueBehavior {

public: // Constructors and destructors
    explicit FunctionBehavior(const QString& umlType="uml::FunctionBehavior");

public: // JsonSerializable override
    void fromJson(const QJsonObject& json, QStringList& errorList) override;
    void toJson(QJsonObject& json) override;

public: // Methods
    /// <summary>
    /// hasAllDataTypeAttributes
    /// The hasAllDataTypeAttributes query tests whether the types of the attributes of
    /// the given DataType are all DataTypes, and similarly for all those DataTypes.
    /// </summary>
    virtual bool hasAllDataTypeAttributes(shared_ptr<DataType> d) const;

};

} // namespace uml
